<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
  </head>
  <body>
    <script>
      const str = new Date('1996-06-27 21:00:00');
      const a=new Date(1996,3,27,21,0,0)
      console.log(str.getTime());
      console.log(a.getTime());
      console.log(moment(str).format("YYYY-MM-DD HH:mm:ss"));
      console.log(moment(a).format("YYYY-MM-DD HH:mm:ss"))
      // 830610000000
    </script>
  </body>
</html>
